package com.neuedu.ylbx.controller;

import com.neuedu.ylbx.service.ReimbursementLevelService;
import com.neuedu.ylbx.utils.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/reimbursement")
@Api(tags = "报销级别配置")
@CrossOrigin
public class ReimbursementLevelController {
    @Autowired
    private ReimbursementLevelService reimbursementLevelService;

    @ApiOperation("获取报销级别配置")
    @GetMapping("/levels")
    public ResultVo getReimbursementLevel()throws Exception{
        return reimbursementLevelService.getReimbursementLevel();
    }
}
